package main;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        double a = 1;
        double b = 1;

            Main main = new Main();
            System.out.println("please choose your calculation");
            Scanner scanner = new Scanner(System.in);
            if (scanner.hasNextLine()) {
                String method = scanner.nextLine();
                if (method.equals("add")) {
                    double result = main.add(a, b);
                    System.out.println(result);

                }
                if (method.equals("subtract")) {
                    double result = main.subtract(a, b);
                    System.out.println(result);

                }
                if (method.equals("multiply")) {
                    double result = main.multiply(a, b);
                    System.out.println(result);
                }
                if (method.equals("divide")) {
                    double result = main.divide(a, b) ;
                    System.out.println(result);
                }
                if (method.equals("pow")) {
                    double result = main.pow(a, b) ;
                    System.out.println(result);
            }}}}




